<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>Happy ERP</title>
    <%= stylesheet_link_tag "../javascripts/ext/resources/css/ext-all.css" %>
    <%= stylesheet_link_tag "../javascripts/ext/ux/css/GroupTab.css" %>

    <%= stylesheet_link_tag "/stylesheets/tasks.css" %>
    <%= stylesheet_link_tag "/stylesheets/images.css" %>

    <%= javascript_include_tag "ext/adapter/ext/ext-base.js" %>
    <%= javascript_include_tag "ext/ext-all-debug.js" %>

    <%= javascript_include_tag "ext/ux/GroupTabPanel.js" %>
    <%= javascript_include_tag "ext/ux/GroupTab.js" %>

    <%= javascript_include_tag "ext/src/locale/ext-lang-zh_CN.js" %>
    <script type="text/javascript">
      Ext.onReady(function() {
        Ext.MessageBox.confirm("提示","你确认要申请撤消订单号为的索赔吗？",function(btn){
          if(btn=="yes"){

          }else{
            //alert("no");
          }
        });
        alert('Ok');

        function processResult(btn){
          if(btn=="yes"){

          }else{
            //alert("no");
          }
        }
        Ext.Msg.show({
          title:'Save Changes?',
          msg: 'You are closing a tab that has unsaved changes. Would you like to save your changes?',
          buttons: Ext.Msg.YESNO,
          fn: processResult,
          modal:false,
          animEl: 'elId',
          icon: Ext.MessageBox.QUESTION
        });
        alert('NO');
      });
    </script>
  </head>
  <body></body>
</html>